﻿namespace DeepCompare
{
    /// <summary>
    ///     This class defines one difference.
    /// </summary>
    public class DifferenceEntry
    {
        /// <summary>
        ///     Initializes a new instance of the <see cref="DifferenceEntry" /> class.
        /// </summary>
        /// <param name="message">The message.</param>
        public DifferenceEntry(string message)
        {
            Message = message;
        }

        /// <summary>
        ///     Initializes a new instance of the <see cref="DifferenceEntry" /> class.
        /// </summary>
        /// <param name="path">The path.</param>
        /// <param name="message">The message.</param>
        public DifferenceEntry(string path,
            string message)
            : this(message)
        {
            Path = path;
        }

        /// <summary>
        ///     Gets the message which names the difference.
        /// </summary>
        /// <value>
        ///     The message.
        /// </value>
        public string Message { get; private set; }

        /// <summary>
        ///     Gets the object path.
        /// </summary>
        /// <value>
        ///     The path.
        /// </value>
        public string Path { get; private set; }
    }
}